﻿var verification = {
    NotNull: {required: true, message: '不能为空！', trigger: [ 'blur'] },
    NotNullSelect: { required: true, message: '不能为空！', trigger: ['blur'] },
    ChinaChar: { t: "^[\\u4e00-\\u9fa5],{0,}$", m: "请输入汉字！" },
    DateTimeYYYYMMDDDD: { t: "^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$", m: "时间输入格式YYYY-MM-DDDD" },
    DecimalOrNum: { t: "^[-+]?\\d*\\.?\\d*$", m: "请输入整数或小数！" },
    DecimalOrNumOrNull: { t: "^([-+]?\\d*\\.?\\d*|[\\s\\S]{0})$", m: "请输入整数、小数或保持为空！" },
    //Email: { t: "^[a-z]([a-z0-9]*[-_]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\\.][a-z]{2,3}([\\.][a-z]{2})?$", m: "请输入正确的的Email地址！" },
    Email: { t: "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", m: "请输入正确的的Email地址！" },
    ForeignAppCode: { t: "[a-zA-Z0-9/]{{{0},{0}}}$", m: "只能包含数字、字母和斜线，长度为{0}位！" },
    ID: { t: "^\\d{15}|\\d{}18$", m: "请输入正确的身份证号码！" },
    IsDecimal: { t: "^\\d+(\\.\\d+)?$", m: "请输入数字！" },
    IsNum: { t: "^[0-9]*$", m: "请输入数字！" },
    logonNameOrPassWord: { t: "^[a-zA-Z]\\w{{{0},{1}}}$", m: "以字母开头，长度在{0}-{1}之间，只能包含字符、数字和下划线" },
    //NotNull: { t: "^\\S+(.|\\n)*$", m: "不能为空！" },
    NumLength: { t: "^\\d{{{0}}}$", m: "输入数字长度为{0}位！" },
    NumLengthAtoB: { t: "^\\d{{{0},{1}}}$", m: "输入数字长度大于{0}位小于{1}位！" },
    NumLengthMin: { t: "^\\d{{{0},}}$", m: "输入数字长度不小于{0}位！" },
    NumPositiveNDecimal: { t: "^[0-9]+(.[0-9]{{{0}}})?$", m: "输入数字为正数并保留{0}位小数！" },
    PhoneNum: { t: "^((d{3,4})|d{3,4}-)?d{7,8}$", m: "正确格式为：“XXXX-XXXXXXX”，“XXXX-XXXXXXXX”，“XXX-XXXXXXX”，“XXX-XXXXXXXX”，“XXXXXXX”，“XXXXXXXX”" },
    StringLengthAtoB: { t: "^\\s*[\\s\\S]{{{0},{1}}}\\s*$", m: "输入长度在{0}与{1}之间！" },
    UpLoadImage: { t: ".*([\\.jpg]|[\\.jpeg]|[\\.jpe]|[\\.gif]|[\\.png]|[\\.JPEG]|[\\.JPG]|[\\.GIF]|[\\.bmp]|[\\.BMP])$", m: "请上传图片！" },
    UpLoadRar: { t: ".*([\\.zip]|[\\.rar])$", m: "请上传压缩包！" }


};